package com.fliad.ai.entity;

import lombok.Data;
import org.dromara.autotable.annotation.AutoColumn;
import org.dromara.autotable.annotation.AutoTable;
import org.dromara.autotable.annotation.PrimaryKey;

import java.util.Date;

/**
 * MCP 服务实体类
 *
 * @author wyl
 * @date 2025年05月22日 下午8:38
 */
@Data
@AutoTable(comment = "MCP 服务")
public class AiMcp {

    @PrimaryKey()
    private Long id;

    @AutoColumn(comment = "服务名称")
    private String name;

    @AutoColumn(comment = "服务类型，可选值：STDIO, SSE")
    private String type;

    @AutoColumn(comment = "命令，当类型为 STDIO 时有效")
    private String command;

    @AutoColumn(comment = "命令参数，空格隔开")
    private String args;

    @AutoColumn(comment = "服务地址，当类型为 SSE 时有效")
    private String serviceUrl;

    @AutoColumn(comment = "环境变量，键值对形式")
    private String envVars;

    private Date created;
    private Long createdBy;
    private Date modified;
    private Long modifiedBy;

}
